package org.jimmy.tang.callback;

/**
 * @author jimmy
 * 
 */
public class Context implements Callback {

    private A a;

    @Override
    public void begin() {
        System.out.println("begin ...");
    }

    @Override
    public void end() {
        System.out.println("end ...");
    }

    public Context() {
        a = new A(this);
    }

    public void doSomething() {
        a.doIt();
    }

    public static void main(String args[]) {
        new Context().doSomething();
    }
}